<?php
	class Item{
		private $id;
		private $name;
		private $price;
		private $sale;
		private $detail;
		public function __construct($i,$n,$p,$s,$d){
			$this->id =$i;
			$this->name =$n;
			$this->price = $p;
			$this->sale = $s;
			$this->detail = $d;
		}
		public function __get($data){
			return $this->$data;
		}
		public function __set($data,$value){
			$this->$data=$value;
		}
		
	}
?>